package com.zking;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/*
1. 主类添加@SpringBootApplication注解（支持自动扫描）
2. 入口方法中：SpringApplication.run()方法启动SpringBoot服务
3. @SpringBootApplication会自动扫描当前类所在包及其子包的注解

 */
@SpringBootApplication
@MapperScan(basePackages = "com.zking.mapper")
// @SpringBootApplication(scanBasePackages = {"com.zking"})
// @ComponentScan()
// @SpringBootConfiguration
public class App1 {
    public static void main(String[] args) {
        SpringApplication.run(App1.class, args);
    }
}
